package com.int_tech.utils;


import com.int_tech.messionLog.entity.MessionLog;

/**
 * Created by Administrator on 2017/9/8.
 */
public class MessageHelp {
    public static MessionLog messionHelp(String messionLog){
        String[] s = messionLog.split(",");
        MessionLog messionLogs = new MessionLog();
        messionLogs.setCarNumber(s[0]);
        messionLogs.setDoorMessage(s[1]);
        messionLogs.setRtcTime(s[2]);
        messionLogs.setGpsIsFail(Integer.parseInt(s[3]));
        messionLogs.setLat(s[6]);
        messionLogs.setLng(s[7]);
//        messionLogs.setLat(s[7]);
//        messionLogs.setLng(s[6]);
        messionLogs.setGepUploadTime(s[5]);
        return messionLogs;
    }
}
